import request from "../untils/request.js";

// 登陆
export const login = (data) => {
  return request({
    url: "/open_api/token",
    method: "post",
    data: JSON.stringify(data),
  });
};
// 获取当前人员下的设备编号
export const getEquipList = (data) => {
  return request({
    url: "/open_api/data/getEquipList",
    method: "get",
    params: data,
  });
};
// 车辆登记
export const register = (data) => {
  return request({
    url: "/open_api/h5Function/register",
    method: "post",
    data: JSON.stringify(data),
  });
};

// 报告列表
export const reportList = (data) => {
  return request({
    url: "/open_api/h5Function/reportList",
    method: "get",
    params: data,
  });
};

// 报告详情
export const reportInfo = (data) => {
  return request({
    url: `/open_api/h5Function/reportInfo?reportNum=${data}`,
    method: "get",
  });
};
